package com.job.blossom.work0711;

import com.job.blossom.work0709.Car;

import java.util.Scanner;

/**
 * @author ZJM
 * @version 1.0
 * @since 2022-07-11 19:19:59
 *
 * Object里的方法 大家都有
 */
public class TestSSS {
    public static void main(String[] args) {
//        final  Car a = new Car();
//        a.band = "ll";
        Scanner a = new Scanner(System.in);
        Scanner b = new Scanner(System.in);

//        获取 a 的运行时类
        System.out.println(a.getClass().getName());

        Premier p1 = Premier.getInstance();
        Premier p2 = Premier.getInstance();

        System.out.println(p1.hashCode());
        System.out.println(p2.hashCode());

        System.out.println(a.hashCode());
        System.out.println(b.hashCode());

//        toString() 打印一个引用类变量的时候 默认调用 变量.toString  对象的字符串形式
        System.out.println(p1);
        System.out.println(p1.toString());


    }
}
